<ion-view view-title="我的消息">
  <style>
    .item-complex.item-icon-right .item-content {
    padding-right: 20px; }
    .jf-item-badge{
        background: red;
        position: absolute;
        top: 18px;
        left: 46px;
        width: 13px;
        height: 13px;
        border-radius: 13px;
    }
  </style>
  <ion-content>
    <ion-list>
      <ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="chat in chats" type="item-text-wrap" href="#/chats/{{chat.sessionId}}">
        <img ng-src="{{chat.imgUrl}}" err-img="img/err.jpg">
        <div class="jf-item-badge" ng-if="noReadArr[''+chat.sessionId]&&noReadArr[''+chat.sessionId]>0"> </div>
        <h2 style="display:flex;justify-content:space-between">{{chat.name}} <div style="">{{chat.lastTime}}</div></h2>
        <p>{{chat.lastMsg}}</p>
        <!--<i class="icon ion-chevron-right icon-accessory"></i>-->

        <!--<ion-option-button class="button-assertive" ng-click="remove(chat)">
          Delete
        </ion-option-button>-->
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
